/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.adama.entite.typePerso;

/**
 *
 * @author mini-john
 */
public enum EtatFacture {

    saisi("Saisi"),
    imprime("Imprime"),
    declare("Declaré"),
    archive("Archivé");
    final private String statut;

    EtatFacture(String statut) {
        this.statut = statut;
    }

    public String getStatut() {
        return statut;
    }

    public static EtatFacture fromString(String text) {
        if (text != null) {
            for (EtatFacture b : EtatFacture.values()) {
                if (text.equalsIgnoreCase(b.statut)) {
                    return b;
                }
            }
        }
        return null;
    }
}
